import request from '@/utils/request'

// 查询普查结果列表
export function listgeneralsurveyrecord(query) {
  return request({
    url: '/system/generalsurveyrecord/list',
    method: 'get',
    params: query
  })
}

// 查询普查结果详细
export function getgeneralsurveyrecord(questionId) {
  return request({
    url: '/system/generalsurveyrecord/' + questionId,
    method: 'get'
  })
}

// 新增普查结果
export function addgeneralsurveyrecord(data) {
  return request({
    url: '/system/generalsurveyrecord',
    method: 'post',
    data: data
  })
}

// 修改普查结果
export function updategeneralsurveyrecord(data) {
  return request({
    url: '/system/generalsurveyrecord',
    method: 'put',
    data: data
  })
}

// 删除普查结果
export function delgeneralsurveyrecord(questionId) {
  return request({
    url: '/system/generalsurveyrecord/' + questionId,
    method: 'delete'
  })
}
